package com.project.ssm.service;

import com.project.ssm.domain.Permission;
import com.project.ssm.domain.Role;

import java.util.List;

public interface IRoleService {
    public List<Role> findAll() throws Exception;

    public Role findById(Integer id) throws Exception;

    public void save(Role role) throws Exception;

    public void deleteRole(Integer id) throws Exception;

    public List<Permission> findOtherPermission(Integer id) throws Exception;

    public void addPermissionToRole(Integer roleId, Integer[] permissionIds) throws Exception;
}
